#include<iostream>
#include<algorithm>
using namespace std;
int a[501],b[501];
int n,m,j;
int main()
{
    cin >> n;
    for(int i=0;i<n;i++)
    {
    cin >> a[i];
    if(a[i]%2!=0)
    {
    b[j]=a[i];
    j++;
    }
    }
    sort(b,b+j);
    for(int i=0;i<j;i++)
    {
    if(i<j-1)
    cout << b[i] <<",";
    else
    cout << b[i];
    }
}